package Test_0526;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-05-26
 * Time: 15:19
 */
public class Test_0526 {
    public static void main4(String[] args) {
        int a=9;//                                         0000   1001
        System.out.println(a>>>2);//表示向右移两个比特位，结果为2 0000  0010
    }

    public static void main(String[] args) {
        int a=1;
        int b=2;
        System.out.println(a>b?1:2);//2 1>2结果为假，所以结果为表达式3，为2
    }
    public static void main2(String[] args) {
        int a=15;//                   0000 1111
        System.out.println(a>>1);//30  0001 1110
        System.out.println(a>>2);//60  0011 1100
    }
    public static void main1(String[] args) {
        int a=1;//                  001
        int b=2;//                  010
        System.out.println(a|b);//3 011
        boolean c=false;
        boolean d=true;
        System.out.println(c|d);
    }
}
